<!-- 循环开始 -->
<volist name="comment" id="vo">
    <div class="c_comments" touid="{$vo.uid}" rowid="{$vo.row_id}" appuid="{$vo.app_uid}" ccid="{$vo.comment_id}">
        <!--这里的ccid为评论id  appuid为分享详情页原分享作者的ID rowid为原分享ID touid为原评论者的ID  -->
        <div class="c_comments_ava">
            <a href="#">
                <img src="{$vo['user_info']['avatar_small']}" width=40 height=40>
            </a>
        </div>
        <div class="c_comments_content">
            <div class="c_comments_content_info">
                <div class="c_comments_content_info_name"  id="cc_name_{$vo.comment_id}">
                    {$vo['user_info']['uname']}
                </div>
                <div class="c_comments_content_info_time">
                    <php>$ctime=strtotime($vo[ctime])</php>{$ctime|friendlyDate}
                </div>
            </div>
            <p class="c_comments_content_p">
                <php>echo wapFormatContent($vo['content']);</php>
            </p>
            <div class="c_comments_reply ts-font fa-reply ts-listen" data-listen="weibo-toreplycomment-{$vo.comment_id}"></div>
        </div>
    </div>
</volist>
<!-- 循环结束 -->
<!-- 分页 -->
        <php>$count=$weibo['comment_count']==0?$count=1:$count=$weibo['comment_count'];</php>
        <div id="pager_box">
            <php>if(empty($_GET['page']) || $_GET['page']==1){</php>
                <a href="javascript:;" link="" id="prev" class="pager_child pager_p_n_none ">上一页</a>
            <php>}else{</php>
                <a href="javascript:;" link="{:U('w3g/Index/detail',array('weibo_id'=>$_GET['weibo_id'],'page'=>$page-1))}" id="prev" class="pager_child pager_p_n ">上一页</a>
            <php>}</php>
            <select id="page_sel" class="pager_child">
                <php>
                    $_GET['page']!=0?$get=$_GET['page']:$get=1;
                    $_count = ceil($count/10);
                    if($get<6){
                        for($i=0;$i<($_count);$i++){
                            $get==$i+1?$selected='selected="selected"':$selected='';
                            if($i>9){
                                break;
                            }
                </php>
                <option value="{:U('w3g/Index/detail')}&page={$i+1}&weibo_id={$_GET['weibo_id']}" <php>echo $selected;</php>>第{$i+1}页</option>
                <php>   }
                    }elseif($get>=6){
                        for($i=($get-5);$i<$get;$i++){
                            $get==$i+1?$selected='selected="selected"':$selected='';
                </php>
                <option value="{:U('w3g/Index/detail')}&page={$i+1}&weibo_id={$_GET['weibo_id']}" <php>echo $selected;</php>>第{$i+1}页</option>
                <php>   }</php>
                <php>   for($i=$get;$i<($get+5);$i++){
                            $get==$i+1?$selected='selected="selected"':$selected='';
                            if($i>$_count-1){
                                break;
                            }
                </php>
                <option value="{:U('w3g/Index/detail')}&page={$i+1}&weibo_id={$_GET['weibo_id']}" <php>echo $selected;</php>>第{$i+1}页</option>
                <php>   }</php>
                <php>}</php>
                
            </select>
            <php>if($get == ($_count)) {</php>
                <a href="javascript:;" link="" id="next" class="pager_child pager_p_n_none">下一页</a>
            <php>}else{</php>
                <a href="javascript:;" link="{:U('w3g/Index/detail',array('weibo_id'=>$_GET['weibo_id'],'page'=>$page+1))}" id="next" class="pager_child pager_p_n">下一页</a>
            <php>}</php>
        </div>
    </div>